import request from '@/utils/request'

export function query(data) {
  return request({
    url: `mes/m/data/collection/list?type=${data.type}&name=${data.name}&page=${data.page.current}&pageSize=${data.page.size}`,
    method: 'post'
  })
}

// 保存
export function save(data) {
  return request({
    url: 'mes/m/data/collection/save',
    method: 'put',
    data
  })
}
// 删除
export function remove(data) {
  return request({
    url: 'mes/m/data/collection/delete',
    method: 'delete',
    data
  })
}
